package club.lovety.micro.user_service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Created by smc on 2018/2/23.
 */
@EnableDiscoveryClient
@SpringBootApplication
public class App {

    private static final Logger log = LoggerFactory.getLogger(App.class);

    @Bean
    public RestTemplate createRestTemplate(){
        return new RestTemplate();
    }


    public static void main(String[] args) {
        log.info("开始启动用户信息提供者");
        SpringApplication.run(App.class,args);
        log.info("启动完成");
    }

}
